<?php
namespace app\customer\controller;
use think\Db;
class Common extends Base{
    public function welcome(){
        $tel = Db::name('setup')->where('id',1)->find();
        $this->assign('url',$_SERVER['HTTP_HOST']);
        $this->assign('tel',$tel);
    	// $todaytime=strtotime(date("Y-m-d"),time());
    	// $today=Db::name('users')->where('time','>',"{$todaytime}")->select();
    	// $history=Db::name('users')->select();
     //    $this->assign('today',count($today));
     //    $this->assign('history',count($history));
        return $this->fetch();
    }
}
